<!--login.html-->

{{ template "header.html" .}}

<h1>登录</h1>


<div class="panel panel-default col-sm-6">
    <div class="panel-body">

        {{ if .ErrorTitle}}
        <p class="bg-danger">
            {{.ErrorTitle}}: {{.ErrorMessage}}
        </p>
        {{end}}

        <form class="form" action="/u/login" method="POST">
            <div class="form-group">
                <label for="username">用户名</label>
                <input type="text" class="form-control" id="username" name="username" placeholder="用户名">
            </div>
            <div class="form-group">
                <label for="password">密码</label>
                <input type="password" class="form-control" id="password" name="password" placeholder="密码">
            </div>
            <button type="submit" class="btn btn-primary">登录</button>
        </form>
    </div>
</div>

{{ template "footer.html" .}}